package com.project.service.goodsOrderInfoService;

import com.github.pagehelper.PageInfo;
import com.project.bean.GoodsOrderBean;
import com.project.bean.GoodsOrderInfoBean;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;

/**
 * 订单详情接口
 */
public interface IGoodsOrderInfoService {
    public int PAGESIZE = 3;
    /**
     * 查看订单详情
     * @param pageNO 页码
     * @param state 状态
     * @param startDate 起始日期
     * @param endDate 结束日期
     * @return
     */
    public PageInfo<GoodsOrderInfoBean> findByItem(int pageNO, String state, LocalDate startDate, LocalDate endDate, int userId);
    /**
     * 按订单id查询订单详情
     * @param orderId 订单id
     * @return 订单对象
     */
    public GoodsOrderBean findById(int orderId);

    /**
     * 修改订单详情状态
     * @param orderInfoId  订单ID
     * @param state  订单状态
     */
    public void update(int orderInfoId, String state);
}
